package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class CharLengthExpression implements LengthExpression {

    private int beginIndex;
    private int endIndex;
    private StringValueExpression stringValueExpression;
    private CharLengthUnits charLengthUnits;

    public CharLengthExpression(int beginIndex,
                                int endIndex,
                                StringValueExpression stringValueExpression,
                                CharLengthUnits charLengthUnits) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.stringValueExpression = stringValueExpression;
        this.charLengthUnits = charLengthUnits;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    @Override
    public StringValueExpression getStringValueExpression() {
        return stringValueExpression;
    }

    public CharLengthUnits getCharLengthUnits() {
        return charLengthUnits;
    }

}
